package com.puer.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ChadYang
 * @since 2025-10-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_user")
@Schema(description = "用户表")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "用户ID")
    private Long id;

    @Schema(description = "用户名")
    private String name;

    @Schema(description = "密码")
    private String pwd;

    @Schema(description = "年龄")
    private Integer age;

    @Schema(description = "手机号")
    private String tel;

    @Schema(description = "逻辑删除")
    @TableLogic(value = "0", delval = "1")
    private Integer deleted;

    @Schema(description = "token")
    @TableField(exist = false)
    private String token;
}
